import 'package:flutter/material.dart';
import 'package:mall/constant/app_colors.dart';

class AppBottomBtn extends StatelessWidget {
  const AppBottomBtn({
    super.key,
    required this.title,
    this.height = 48,
    this.onTap,
  });

  final String title;
  final double height;
  final Function()? onTap;
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
          height: height,
          decoration: BoxDecoration(
            color: AppColors.C_FD2C55,
            borderRadius: BorderRadius.circular(height / 2),
          ),
          alignment: Alignment.center,
          child: Text(
            title,
            style: TextStyle(color: AppColors.C_FFFFFF, fontSize: 15, fontWeight: FontWeight.bold),
          )),
    );
  }
}
